From: Po Lu Date: Sun, 12 Jun 2022 02:13:04 +0000 (+0800) Subject: * src/nsfns.m (ns_move_tooltip_to_mouse_location): Handle invisible frames. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2349^2~65 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=574c5d1de420b8257b6174b2023219d372f41919;p=emacs.git * src/nsfns.m (ns_move_tooltip_to_mouse_location): Handle invisible frames. --- diff --git a/src/nsfns.m b/src/nsfns.m index add4883e1fd..5ab2b2ee35a 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -3816,7 +3816,8 @@ ns_move_tooltip_to_mouse_location (NSPoint screen_point) if (ns_tooltip) size = [ns_tooltip frame].size; else if (!FRAMEP (tip_frame) - || !FRAME_LIVE_P (XFRAME (tip_frame))) + || !FRAME_LIVE_P (XFRAME (tip_frame)) + || !FRAME_VISIBLE_P (XFRAME (tip_frame))) return; else {